class CreateRaidEvents < ActiveRecord::Migration
  def self.up
    create_table :raid_events do |t|
      t.column :raid_id, :integer, :null => false
      t.column :event_id, :integer, :null => false
      t.column :time, :datetime  
      #Need to keep a count of the total witnesses for pro-rata calculations
      t.column :total, :integer, :default => 0   
    end
  end

  def self.down
    drop_table :raid_events
  end
end
